'use strict';

angular.module('snPaas_om')
	.controller('MysqlCompCtrl',['$scope','baseUrl','mysqlMonitorStore','mysqlClusterStore',function($scope,baseUrl,mysqlMonitorStore,mysqlClusterStore){
		var vm = $scope;
		vm.baseUrl = baseUrl.static;
		vm.id = vm.$stateParams.id;

		mysqlClusterStore.detail(vm.id).then(function(data){
			vm.name = data.deploymentName;
		});
		mysqlMonitorStore.clusterMonit(vm.id).then(function(data){
			vm.monitList = data;
		});
	}]);